package com.example.mybatisdemoplus.Controller;

import com.example.mybatisdemoplus.Entity.OrgCreate;
import com.example.mybatisdemoplus.Service.OrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("org")
public class OrgCreateController {
    @Autowired
    private OrgService orgService;


    @PostMapping
    public Object addOrg(@RequestBody OrgCreate orgCreate){
        return orgService.addOrg(orgCreate);
    }

    @GetMapping
    public Object getOrg(@RequestBody OrgCreate orgCreate){
        return orgService.getOrg(orgCreate);
    }

}
